package com.neusoft.elm.po;

public class Business {
    private Integer businessId;
    private String password;
    private String businessName;
    private String businessAddress;
    private String businessExplain;
    private Double starPrice;
    private Double deliveryPrice;
    // 新增字段
    private Double distance;      // 距离
    private Integer monthlySales; // 月销量
    private Double rating;        // 星级评价
    
    public Business() {
    }
    
    public Business(Integer businessId, String password, String businessName, String businessAddress,
                   String businessExplain, Double starPrice, Double deliveryPrice) {
        this.businessId = businessId;
        this.password = password;
        this.businessName = businessName;
        this.businessAddress = businessAddress;
        this.businessExplain = businessExplain;
        this.starPrice = starPrice;
        this.deliveryPrice = deliveryPrice;
    }
    
    // 所有字段的 getter 和 setter 方法
    public Integer getBusinessId() {
        return businessId;
    }
    
    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getBusinessName() {
        return businessName;
    }
    
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }
    
    public String getBusinessAddress() {
        return businessAddress;
    }
    
    public void setBusinessAddress(String businessAddress) {
        this.businessAddress = businessAddress;
    }
    
    public String getBusinessExplain() {
        return businessExplain;
    }
    
    public void setBusinessExplain(String businessExplain) {
        this.businessExplain = businessExplain;
    }
    
    public Double getStarPrice() {
        return starPrice;
    }
    
    public void setStarPrice(Double starPrice) {
        this.starPrice = starPrice;
    }
    
    public Double getDeliveryPrice() {
        return deliveryPrice;
    }
    
    public void setDeliveryPrice(Double deliveryPrice) {
        this.deliveryPrice = deliveryPrice;
    }
    
    // 新增字段的 getter 和 setter
    public Double getDistance() {
        return distance;
    }
    
    public void setDistance(Double distance) {
        this.distance = distance;
    }
    
    public Integer getMonthlySales() {
        return monthlySales;
    }
    
    public void setMonthlySales(Integer monthlySales) {
        this.monthlySales = monthlySales;
    }
    
    public Double getRating() {
        return rating;
    }
    
    public void setRating(Double rating) {
        this.rating = rating;
    }
    
    @Override
    public String toString() {
        return "Business{" +
                "businessId=" + businessId +
                ", businessName='" + businessName + '\'' +
                ", businessAddress='" + businessAddress + '\'' +
                ", businessExplain='" + businessExplain + '\'' +
                ", starPrice=" + starPrice +
                ", deliveryPrice=" + deliveryPrice +
                ", distance=" + distance +
                ", monthlySales=" + monthlySales +
                ", rating=" + rating +
                '}';
    }
}